package query

type SysDevQuery struct {
	GatewaySnIn []string `search:"type:in;column:gateway_sn;table:sys_dev"`
	Sn          string   `search:"type:exact;column:sn;table:sys_dev"`
	GateOrSn    string   `search:"type:eqOr;column:sn,gateway_sn;table:sys_dev"`
	DeptIdIn    []string `search:"type:in;column:dept_id;table:sys_dev"`
	DeptIdEq    string   `search:"type:exact;column:dept_id;table:sys_dev"`
	NotAlarm    bool     `search:"type:ne;column:alarm_status;table:sys_dev"`
	HasAlarm    bool     `search:"type:exact;column:alarm_status;table:sys_dev"`
}

type DevNetstatReq struct {
	Port int `form:"port" vd:"$>0"`
}
